var flag;
var label = $("#phoneLabel1");
function log1(str){
        var username=$("#userAccount").val();
        var password=$("#userPassword").val();
        $.post("/admin/login", "adminID="+username+"&password="+password,function (data, status) {
            if (data == 1){
                window.location.href = "/Back_Management.jsp";
            } else {
                alert("管理员密码错误！！！");
            }
        },"json");
}
function phone_reset(){
    userAccount.placeholder="请输入账号";
    document.getElementById("phoneLabel1").style.display = "none";
}

function checkMobile ( str ) {
    document.getElementById("phoneLabel1").style.display = "none";
    if (str== "" ){
        userAccount.placeholder="账号不能为空！";
        flag=0;
        document.getElementById("user_phone".placeholder.color="red");
    }
}